package com.gitee.kinbug.sniper.web.service;

import java.util.List;

import com.gitee.kinbug.sniper.common.enums.CandleEnum;
import com.gitee.kinbug.sniper.common.enums.SymbolEnum;
import com.gitee.kinbug.sniper.web.device.Index;
import com.gitee.kinbug.sniper.web.device.SeriesModel;

public abstract class AService<T> {

    public SymbolEnum symbol;
	
	public Index index;
	
	public SeriesModel seriesModel;
	
	public SymbolEnum getSymbol() {
		return symbol;
	}

	public Index getIndex() {
		return index;
	}

	public SeriesModel getSeriesModel() {
		return seriesModel;
	}
	
	
	/**
	 * - 计算相关的指标
     * @param candles 计算k线
     * @return Index 指标计算结果
     */
    public abstract T compute(List<CandleEnum> candles);
}
